package top.vanchor.myblog2back.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import top.vanchor.myblog2back.entity.BackAuthGroupRule;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Ding
 * @since 2022-01-27
 */
@Mapper
public interface BackAuthGroupRuleMapper extends BaseMapper<BackAuthGroupRule> {

    /**
     * 获取目标角色id的权限树（不包括顶级id）
     * @param groupId
     * @return
     */
    List<Integer> getRuleIdsByGroupIdNotIncludeTopId(@Param("groupId") Integer groupId);
}
